package com.hqyj.finance.server.bill.financebill.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.finance.server.bill.financebill.entity.UserExpenses;
import com.hqyj.finance.server.bill.financebill.entity.UserIncome;
import com.hqyj.finance.server.bill.financebill.views.*;

import java.util.List;

public interface UserIncomeService extends IService<UserIncome> {

    //新增用户支出信息
    public boolean saveUserIncomeInfo(UserIncome userIncome) throws Exception;

    //查询用户的支出信息
    public List<UserIncome> queryUserIncomeInfoByUid(Integer uid) throws Exception;

    public Page<UserIncome> queryUserIncomePagerByUid(Integer uid,Integer currentPageNum) throws Exception;

    public UserIncome queryUserIncomeInfoByIncomesId(Integer id);

    public UserIncomeMonthsView queryUserIncomeMonthsViewByUid(Integer uid,String realName, String month,Integer currentPageNum);

    public String exportUserIncomeMonthViewAsExcel(UserIncomeMonthsView userIncomeMonthsView) throws Exception;


    public UserIncomeMonthsCharts queryUserIncomeMonthsChartsByUid(Integer uid, String realName, String month);

    public UserIncomeCatalogMonthsCharts queryUserIncomeCatalogMonthsCharts(Integer uid, String realName, String month);
}
